<!DOCTYPE html>
<html lang="en-US">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <meta name="generator" content="VuePress 2.0.0-beta.63">
    <style>
      :root {
        --c-bg: #fff;
      }
      html.dark {
        --c-bg: #22272e;
      }
      html, body {
        background-color: var(--c-bg);
      }
    </style>
    <script>
      const userMode = localStorage.getItem('vuepress-color-scheme');
			const systemDarkMode = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches;
			if (userMode === 'dark' || (userMode !== 'light' && systemDarkMode)) {
				document.documentElement.classList.toggle('dark', true);
			}
    </script>
    <link rel="apple-touch-icon" href="/preview/dev-edge/static/images/icons/apple-touch-icon.png"><link rel="icon" type="image/png" sizes="32x32" href="/preview/dev-edge/static/images/icons/favicon-32x32.png"><link rel="icon" type="image/png" sizes="16x16" href="/preview/dev-edge/static/images/icons/favicon-32x32.png"><link rel="mask-icon" color="#5bbad5" href="/preview/dev-edge/static/images/icons/safari-pinned-tab.svg"><link rel="manifest" href="/preview/dev-edge/manifest.webmanifest"><meta name="theme-color" content="#3eaf7c"><title>java | 编程宝典</title><meta name="description" content="技术文档系列">
    <link rel="preload" href="/preview/dev-edge/assets/style-f70c0240.css" as="style"><link rel="stylesheet" href="/preview/dev-edge/assets/style-f70c0240.css">
    <link rel="modulepreload" href="/preview/dev-edge/assets/app-5517e208.js"><link rel="modulepreload" href="/preview/dev-edge/assets/index.html-7604bfc1.js"><link rel="modulepreload" href="/preview/dev-edge/assets/index.html-193e0fce.js"><link rel="prefetch" href="/preview/dev-edge/assets/index.html-b0802b3f.js" as="script"><link rel="prefetch" href="/preview/dev-edge/assets/index.html-91808b4b.js" as="script"><link rel="prefetch" href="/preview/dev-edge/assets/companyWebSite.html-9e7a30c8.js" as="script"><link rel="prefetch" href="/preview/dev-edge/assets/index.html-4262c6b6.js" as="script"><link rel="prefetch" href="/preview/dev-edge/assets/index.html-6497e968.js" as="script"><link rel="prefetch" href="/preview/dev-edge/assets/index.html-2b3ce734.js" as="script"><link rel="prefetch" href="/preview/dev-edge/assets/index.html-c1d52a82.js" as="script"><link rel="prefetch" href="/preview/dev-edge/assets/index.html-8ef690da.js" as="script"><link rel="prefetch" href="/preview/dev-edge/assets/index.html-6ead1acd.js" as="script"><link rel="prefetch" href="/preview/dev-edge/assets/index.html-e16c539b.js" as="script"><link rel="prefetch" href="/preview/dev-edge/assets/index.html-2612aedd.js" as="script"><link rel="prefetch" href="/preview/dev-edge/assets/element.html-433d6fa7.js" as="script"><link rel="prefetch" href="/preview/dev-edge/assets/others.html-0fd00d80.js" as="script"><link rel="prefetch" href="/preview/dev-edge/assets/index.html-d5a68135.js" as="script"><link rel="prefetch" href="/preview/dev-edge/assets/index.html-f9d64ee4.js" as="script"><link rel="prefetch" href="/preview/dev-edge/assets/note.html-c888e7ae.js" as="script"><link rel="prefetch" href="/preview/dev-edge/assets/standard.html-a01ab960.js" as="script"><link rel="prefetch" href="/preview/dev-edge/assets/chapter01.html-9437ac94.js" as="script"><link rel="prefetch" href="/preview/dev-edge/assets/3Dweb.html-a089b8c2.js" as="script"><link rel="prefetch" href="/preview/dev-edge/assets/efficientOffice.html-738b652c.js" as="script"><link rel="prefetch" href="/preview/dev-edge/assets/jsBase.html-57994080.js" as="script"><link rel="prefetch" href="/preview/dev-edge/assets/shareDays.html-3bf22bb6.js" as="script"><link rel="prefetch" href="/preview/dev-edge/assets/index.html-f50cfc3a.js" as="script"><link rel="prefetch" href="/preview/dev-edge/assets/index.html-d5c469ee.js" as="script"><link rel="prefetch" href="/preview/dev-edge/assets/404.html-1f2dab39.js" as="script"><link rel="prefetch" href="/preview/dev-edge/assets/index.html-5eb236d0.js" as="script"><link rel="prefetch" href="/preview/dev-edge/assets/index.html-1a6bf188.js" as="script"><link rel="prefetch" href="/preview/dev-edge/assets/companyWebSite.html-cf3c257a.js" as="script"><link rel="prefetch" href="/preview/dev-edge/assets/index.html-0825c4b1.js" as="script"><link rel="prefetch" href="/preview/dev-edge/assets/index.html-60fc4bf3.js" as="script"><link rel="prefetch" href="/preview/dev-edge/assets/index.html-ade72257.js" as="script"><link rel="prefetch" href="/preview/dev-edge/assets/index.html-6916a41b.js" as="script"><link rel="prefetch" href="/preview/dev-edge/assets/index.html-b898dcab.js" as="script"><link rel="prefetch" href="/preview/dev-edge/assets/index.html-5dc09f61.js" as="script"><link rel="prefetch" href="/preview/dev-edge/assets/index.html-27bb8266.js" as="script"><link rel="prefetch" href="/preview/dev-edge/assets/index.html-d7c5567b.js" as="script"><link rel="prefetch" href="/preview/dev-edge/assets/element.html-67b8ba8a.js" as="script"><link rel="prefetch" href="/preview/dev-edge/assets/others.html-243c60b2.js" as="script"><link rel="prefetch" href="/preview/dev-edge/assets/index.html-38035162.js" as="script"><link rel="prefetch" href="/preview/dev-edge/assets/index.html-301c45fe.js" as="script"><link rel="prefetch" href="/preview/dev-edge/assets/note.html-a409283d.js" as="script"><link rel="prefetch" href="/preview/dev-edge/assets/standard.html-1078c00a.js" as="script"><link rel="prefetch" href="/preview/dev-edge/assets/chapter01.html-a87c4022.js" as="script"><link rel="prefetch" href="/preview/dev-edge/assets/3Dweb.html-ce93ff55.js" as="script"><link rel="prefetch" href="/preview/dev-edge/assets/efficientOffice.html-eb2a5cdf.js" as="script"><link rel="prefetch" href="/preview/dev-edge/assets/jsBase.html-598d0a7a.js" as="script"><link rel="prefetch" href="/preview/dev-edge/assets/shareDays.html-44350d8b.js" as="script"><link rel="prefetch" href="/preview/dev-edge/assets/index.html-58ddc7ce.js" as="script"><link rel="prefetch" href="/preview/dev-edge/assets/index.html-a8b21767.js" as="script"><link rel="prefetch" href="/preview/dev-edge/assets/404.html-2796e91e.js" as="script"><link rel="prefetch" href="/preview/dev-edge/assets/index-e32a7948.js" as="script">
  </head>
  <body>
    <div id="app"><!--[--><div class="theme-container"><!--[--><header class="navbar"><div class="toggle-sidebar-button" title="toggle sidebar" aria-expanded="false" role="button" tabindex="0"><div class="icon" aria-hidden="true"><span></span><span></span><span></span></div></div><span><a href="/preview/dev-edge/" class=""><img class="logo" src="/preview/dev-edge/static/images/icons/android-chrome-192x192.png" alt="编程宝典"><span class="site-name can-hide">编程宝典</span></a></span><div class="navbar-items-wrapper" style=""><!--[--><!--]--><nav class="navbar-items can-hide"><!--[--><div class="navbar-item"><div class="navbar-dropdown-wrapper"><button class="navbar-dropdown-title" type="button" aria-label="前端"><span class="title">前端</span><span class="arrow down"></span></button><button class="navbar-dropdown-title-mobile" type="button" aria-label="前端"><span class="title">前端</span><span class="right arrow"></span></button><ul style="display:none;" class="navbar-dropdown"><!--[--><li class="navbar-dropdown-item"><!--[--><h4 class="navbar-dropdown-subtitle"><span>基础知识</span></h4><ul class="navbar-dropdown-subitem-wrapper"><!--[--><li class="navbar-dropdown-subitem"><a href="/preview/dev-edge/frontend/html/" class="" aria-label="html"><!--[--><!--]--> html <!--[--><!--]--></a></li><li class="navbar-dropdown-subitem"><a href="/preview/dev-edge/frontend/css/" class="" aria-label="css"><!--[--><!--]--> css <!--[--><!--]--></a></li><li class="navbar-dropdown-subitem"><a href="/preview/dev-edge/frontend/javascript/" class="" aria-label="Javascript"><!--[--><!--]--> Javascript <!--[--><!--]--></a></li><!--]--></ul><!--]--></li><li class="navbar-dropdown-item"><!--[--><h4 class="navbar-dropdown-subtitle"><span>高级进阶</span></h4><ul class="navbar-dropdown-subitem-wrapper"><!--[--><li class="navbar-dropdown-subitem"><a href="/preview/dev-edge/frontend/vue/" class="" aria-label="Vue"><!--[--><!--]--> Vue <!--[--><!--]--></a></li><!--]--></ul><!--]--></li><li class="navbar-dropdown-item"><!--[--><h4 class="navbar-dropdown-subtitle"><span>插件及组件库</span></h4><ul class="navbar-dropdown-subitem-wrapper"><!--[--><li class="navbar-dropdown-subitem"><a href="/preview/dev-edge/frontend/libs/" class="" aria-label="导航"><!--[--><!--]--> 导航 <!--[--><!--]--></a></li><!--]--></ul><!--]--></li><li class="navbar-dropdown-item"><!--[--><h4 class="navbar-dropdown-subtitle"><span>综合</span></h4><ul class="navbar-dropdown-subitem-wrapper"><!--[--><li class="navbar-dropdown-subitem"><a href="/preview/dev-edge/frontend/others/standard" class="" aria-label="前端开发规范"><!--[--><!--]--> 前端开发规范 <!--[--><!--]--></a></li><li class="navbar-dropdown-subitem"><a href="/preview/dev-edge/frontend/others/note" class="" aria-label="前端知识点"><!--[--><!--]--> 前端知识点 <!--[--><!--]--></a></li><!--]--></ul><!--]--></li><!--]--></ul></div></div><div class="navbar-item"><div class="navbar-dropdown-wrapper"><button class="navbar-dropdown-title" type="button" aria-label="后端"><span class="title">后端</span><span class="arrow down"></span></button><button class="navbar-dropdown-title-mobile" type="button" aria-label="后端"><span class="title">后端</span><span class="right arrow"></span></button><ul style="display:none;" class="navbar-dropdown"><!--[--><li class="navbar-dropdown-item"><a aria-current="page" href="/preview/dev-edge/backend/java/" class="router-link-active router-link-exact-active router-link-active" aria-label="java"><!--[--><!--]--> java <!--[--><!--]--></a></li><li class="navbar-dropdown-item"><a href="/preview/dev-edge/backend/python/" class="" aria-label="python"><!--[--><!--]--> python <!--[--><!--]--></a></li><!--]--></ul></div></div><div class="navbar-item"><a href="/preview/dev-edge/storage/" class="" aria-label="版本库"><!--[--><!--]--> 版本库 <!--[--><!--]--></a></div><div class="navbar-item"><a href="/preview/dev-edge/manage/" class="" aria-label="管理"><!--[--><!--]--> 管理 <!--[--><!--]--></a></div><div class="navbar-item"><a href="/preview/dev-edge/project/" class="" aria-label="项目"><!--[--><!--]--> 项目 <!--[--><!--]--></a></div><div class="navbar-item"><a href="/preview/dev-edge/system/" class="" aria-label="系统"><!--[--><!--]--> 系统 <!--[--><!--]--></a></div><div class="navbar-item"><a href="/preview/dev-edge/share/" class="" aria-label="分享"><!--[--><!--]--> 分享 <!--[--><!--]--></a></div><div class="navbar-item"><a class="external-link" href="https://gitee.com/chengmaofeng/dev-edge" rel="noopener noreferrer" target="_blank" aria-label="Gitee"><!--[--><!--]--> Gitee <span><svg class="external-link-icon" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><span class="external-link-icon-sr-only">open in new window</span></span><!--[--><!--]--></a></div><!--]--></nav><!--[--><!--]--><button class="toggle-color-mode-button" title="toggle color mode"><svg style="" class="icon" focusable="false" viewBox="0 0 32 32"><path d="M16 12.005a4 4 0 1 1-4 4a4.005 4.005 0 0 1 4-4m0-2a6 6 0 1 0 6 6a6 6 0 0 0-6-6z" fill="currentColor"></path><path d="M5.394 6.813l1.414-1.415l3.506 3.506L8.9 10.318z" fill="currentColor"></path><path d="M2 15.005h5v2H2z" fill="currentColor"></path><path d="M5.394 25.197L8.9 21.691l1.414 1.415l-3.506 3.505z" fill="currentColor"></path><path d="M15 25.005h2v5h-2z" fill="currentColor"></path><path d="M21.687 23.106l1.414-1.415l3.506 3.506l-1.414 1.414z" fill="currentColor"></path><path d="M25 15.005h5v2h-5z" fill="currentColor"></path><path d="M21.687 8.904l3.506-3.506l1.414 1.415l-3.506 3.505z" fill="currentColor"></path><path d="M15 2.005h2v5h-2z" fill="currentColor"></path></svg><svg style="display:none;" class="icon" focusable="false" viewBox="0 0 32 32"><path d="M13.502 5.414a15.075 15.075 0 0 0 11.594 18.194a11.113 11.113 0 0 1-7.975 3.39c-.138 0-.278.005-.418 0a11.094 11.094 0 0 1-3.2-21.584M14.98 3a1.002 1.002 0 0 0-.175.016a13.096 13.096 0 0 0 1.825 25.981c.164.006.328 0 .49 0a13.072 13.072 0 0 0 10.703-5.555a1.01 1.01 0 0 0-.783-1.565A13.08 13.08 0 0 1 15.89 4.38A1.015 1.015 0 0 0 14.98 3z" fill="currentColor"></path></svg></button><form class="search-box" role="search"><input type="search" autocomplete="off" spellcheck="false" value><!----></form></div></header><!--]--><div class="sidebar-mask"></div><!--[--><aside class="sidebar"><nav class="navbar-items"><!--[--><div class="navbar-item"><div class="navbar-dropdown-wrapper"><button class="navbar-dropdown-title" type="button" aria-label="前端"><span class="title">前端</span><span class="arrow down"></span></button><button class="navbar-dropdown-title-mobile" type="button" aria-label="前端"><span class="title">前端</span><span class="right arrow"></span></button><ul style="display:none;" class="navbar-dropdown"><!--[--><li class="navbar-dropdown-item"><!--[--><h4 class="navbar-dropdown-subtitle"><span>基础知识</span></h4><ul class="navbar-dropdown-subitem-wrapper"><!--[--><li class="navbar-dropdown-subitem"><a href="/preview/dev-edge/frontend/html/" class="" aria-label="html"><!--[--><!--]--> html <!--[--><!--]--></a></li><li class="navbar-dropdown-subitem"><a href="/preview/dev-edge/frontend/css/" class="" aria-label="css"><!--[--><!--]--> css <!--[--><!--]--></a></li><li class="navbar-dropdown-subitem"><a href="/preview/dev-edge/frontend/javascript/" class="" aria-label="Javascript"><!--[--><!--]--> Javascript <!--[--><!--]--></a></li><!--]--></ul><!--]--></li><li class="navbar-dropdown-item"><!--[--><h4 class="navbar-dropdown-subtitle"><span>高级进阶</span></h4><ul class="navbar-dropdown-subitem-wrapper"><!--[--><li class="navbar-dropdown-subitem"><a href="/preview/dev-edge/frontend/vue/" class="" aria-label="Vue"><!--[--><!--]--> Vue <!--[--><!--]--></a></li><!--]--></ul><!--]--></li><li class="navbar-dropdown-item"><!--[--><h4 class="navbar-dropdown-subtitle"><span>插件及组件库</span></h4><ul class="navbar-dropdown-subitem-wrapper"><!--[--><li class="navbar-dropdown-subitem"><a href="/preview/dev-edge/frontend/libs/" class="" aria-label="导航"><!--[--><!--]--> 导航 <!--[--><!--]--></a></li><!--]--></ul><!--]--></li><li class="navbar-dropdown-item"><!--[--><h4 class="navbar-dropdown-subtitle"><span>综合</span></h4><ul class="navbar-dropdown-subitem-wrapper"><!--[--><li class="navbar-dropdown-subitem"><a href="/preview/dev-edge/frontend/others/standard" class="" aria-label="前端开发规范"><!--[--><!--]--> 前端开发规范 <!--[--><!--]--></a></li><li class="navbar-dropdown-subitem"><a href="/preview/dev-edge/frontend/others/note" class="" aria-label="前端知识点"><!--[--><!--]--> 前端知识点 <!--[--><!--]--></a></li><!--]--></ul><!--]--></li><!--]--></ul></div></div><div class="navbar-item"><div class="navbar-dropdown-wrapper"><button class="navbar-dropdown-title" type="button" aria-label="后端"><span class="title">后端</span><span class="arrow down"></span></button><button class="navbar-dropdown-title-mobile" type="button" aria-label="后端"><span class="title">后端</span><span class="right arrow"></span></button><ul style="display:none;" class="navbar-dropdown"><!--[--><li class="navbar-dropdown-item"><a aria-current="page" href="/preview/dev-edge/backend/java/" class="router-link-active router-link-exact-active router-link-active" aria-label="java"><!--[--><!--]--> java <!--[--><!--]--></a></li><li class="navbar-dropdown-item"><a href="/preview/dev-edge/backend/python/" class="" aria-label="python"><!--[--><!--]--> python <!--[--><!--]--></a></li><!--]--></ul></div></div><div class="navbar-item"><a href="/preview/dev-edge/storage/" class="" aria-label="版本库"><!--[--><!--]--> 版本库 <!--[--><!--]--></a></div><div class="navbar-item"><a href="/preview/dev-edge/manage/" class="" aria-label="管理"><!--[--><!--]--> 管理 <!--[--><!--]--></a></div><div class="navbar-item"><a href="/preview/dev-edge/project/" class="" aria-label="项目"><!--[--><!--]--> 项目 <!--[--><!--]--></a></div><div class="navbar-item"><a href="/preview/dev-edge/system/" class="" aria-label="系统"><!--[--><!--]--> 系统 <!--[--><!--]--></a></div><div class="navbar-item"><a href="/preview/dev-edge/share/" class="" aria-label="分享"><!--[--><!--]--> 分享 <!--[--><!--]--></a></div><div class="navbar-item"><a class="external-link" href="https://gitee.com/chengmaofeng/dev-edge" rel="noopener noreferrer" target="_blank" aria-label="Gitee"><!--[--><!--]--> Gitee <span><svg class="external-link-icon" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><span class="external-link-icon-sr-only">open in new window</span></span><!--[--><!--]--></a></div><!--]--></nav><!--[--><!--]--><ul class="sidebar-items"><!--[--><li><p tabindex="0" class="sidebar-item sidebar-heading active collapsible">基础知识 <span class="down arrow"></span></p><ul style="" class="sidebar-item-children"><!--[--><li><a aria-current="page" href="/preview/dev-edge/backend/java/" class="router-link-active router-link-exact-active router-link-active sidebar-item active" aria-label="java"><!--[--><!--]--> java <!--[--><!--]--></a><!----></li><li><a href="/preview/dev-edge/backend/python/" class="sidebar-item" aria-label="Python"><!--[--><!--]--> Python <!--[--><!--]--></a><!----></li><!--]--></ul></li><!--]--></ul><!--[--><!--]--></aside><!--]--><!--[--><main class="page"><!--[--><!--]--><div class="theme-default-content"><!--[--><!--]--><div><h1 id="java" tabindex="-1"><a class="header-anchor" href="#java" aria-hidden="true">#</a> java</h1></div><!--[--><!--]--></div><footer class="page-meta"><!----><!----><!----></footer><nav class="page-nav"><p class="inner"><!----><span class="next"><a href="/preview/dev-edge/backend/python/" class="" aria-label="Python"><!--[--><!--]--> Python <!--[--><!--]--></a></span></p></nav><!--[--><!--]--></main><!--]--></div><!----><!--]--></div>
    <script type="module" src="/preview/dev-edge/assets/app-5517e208.js" defer></script>
  </body>
</html>
